Spanish unions will be given access to the algorithms companies such as Uber use to manage their workforce in the gig economy, to monitor conditions and stop workers being underpaid in low-demand hours, Labour Minister Yolanda Diaz said on Thursday.

Such labour rights monitoring is part of Spain’s forthcoming legislation to bolster protections for service sector workers, typically hired on freelance basis, that will require employers to put them on staff contracts.

The bill still has needs a green light from the cabinet, after which companies will have 90 days to implement it.